<button (click)="connect()">连接</button>
<button (click)="break()">断开</button>
<button (click)="sendMsg()">发送token</button>
<p>
  socket连接状态： <b>{{state}}</b>
</p>
<p>
  服务端推送过来的消息:
</p>
<div [innerHTML]="msg"></div>